Coverage Report

Created: 2021-08-28 18:14

D:\git\skunkworks\herald-for-cpp\herald\include\herald\datatype\wgs84.h
Line
Count
Source (jump to first uncovered line)
1
//  Copyright 2020-2021 Herald Project Contributors
2
//  SPDX-License-Identifier: Apache-2.0
3
//
4
5
#ifndef HERALD_WGS84_H
6
#define HERALD_WGS84_H
7
8
#include "location_reference.h"
9
10
#include <string>
11
12
namespace herald {
13
namespace datatype {
14
15
struct WGS84CircularAreaLocationReference : public LocationReference {
16
  double latitude;
17
  double longitude;
18
  double altitude;
19
  double radius;
20
21
0
  std::string description() override {
22
0
    return "WGS84(lat=" + std::to_string(latitude) + ",lon=" + std::to_string(longitude) + ",alt=" + std::to_string(altitude) + ",radius=" + std::to_string(radius) + ")";
23
0
  }
24
25
};
26
27
28
29
struct WGS84PointLocationReference : public LocationReference {
30
  double latitude;
31
  double longitude;
32
  double altitude;
33
34
0
  std::string description() override {
35
0
    return "WGS84(lat=" + std::to_string(latitude) + ",lon=" + std::to_string(longitude) + ",alt=" + std::to_string(altitude) + ")";
36
0
  }
37
38
};
39
40
41
} // end namespace
42
} // end namespace
43
44
#endif